<?php

namespace mbilling\BillingBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;

class OrdersIpForm extends AbstractType
{
    //protected $accounts;

    /*public function __construct($accounts)
    {
        $this->accounts = $accounts;
    }*/
    public function buildForm(FormBuilder $builder, array $options)
    {
        $builder->add('ip', 'text');
        $builder->add('name', 'text');
        $builder->add('mac', 'text');
        $builder->add('type_id', 'choice', array('choices' => array(1 => 'служебный', 2 => 'VPS', 3 => 'shared', 4 => 'dedicated'), 'required' => false));
        $builder->add('account', 'text', array('required' => false));
    }
}